apiready = function() {

	$("#").on('click', function() {
		var address = $("#address").val();
		var receiver = $("#receiver").val();
		var phone = $("#phone").val();
		if (!address || !receiver || !phone) {
			alert('请填写收货信息');
			return;
		}
		$api.getUserInf(function(user) {

			$api.do_post('', {
				body: JSON.stringify({
					id: api.getParams.order_id;
					account: user.account;
					buyNum:;
					address:;
					receiver:;
					phone:;
				})
			}, function(result) {
				if (result == '0') {
					alert(result.msg);

				} else {
					alert('参团失败');

				}
			});
		});

	});
}